package org.millioncall.yueyoga.admin.service.impl;

import java.util.Map;

import org.millioncall.yueyoga.admin.dao.UserDetailDAO;
import org.millioncall.yueyoga.admin.model.UserDetail;
import org.millioncall.yueyoga.admin.service.UserDetailService;
import org.springframework.stereotype.Service;
@Service
public class UserDetailServiceImpl implements UserDetailService{
	private UserDetailDAO userDetailDAO;
	
	public UserDetailDAO getUserDetailDAO() {
		return userDetailDAO;
	}

	public void setUserDetailDAO(UserDetailDAO userDetailDAO) {
		this.userDetailDAO = userDetailDAO;
	}

	@Override
	public UserDetail findUserDetailById(String id) {
		return userDetailDAO.findUserDetailById(id);
	}

	@Override
	public boolean updateUserDetail(Map<String, Object> map) {
		int i = userDetailDAO.updateUserDetail(map);
		if(i>0){
			return true;
		}else{
			return false;
	}
}

}
